﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using com.nm.Attributes;


namespace DistributeAPI.Model
{
    public class DCTaskMasteModel
    {
        #region Entity

        public class Entity
        {
            [ParamDescription("公司代码")]
            public string CompanyID { get; set; }

            [ParamDescription("任务单号")]
            public string TaskBillNo { get; set; }

            [ParamDescription("配货方式")]
            public string TaskType { get; set; }

            [ParamDescription("操作员")]
            public string Operator { get; set; }

            [ParamDescription("开始时间")]
            public DateTime OperateDate { get; set; }

            [ParamDescription("完成时间")]
            public DateTime Finishdate { get; set; }

            [ParamDescription("生成ERP单据时间")]
            public DateTime PushBillDate { get; set; }

            [ParamDescription("任务状态")]
            public int TaskFlag { get; set; }

            [ParamDescription("抽数时间")]
            public DateTime LoadTime { get; set; }

            [ParamDescription("修改时间")]
            public DateTime etl_date { get; set; }


        }

        #endregion

        #region ListModel

        public class ListModel
        {
            private string taskFlagName = "未知";
            private string taskTypeName = "未知";


            [ParamDescription("品牌")]
            public string ExtrSource { get; set; }

            [ParamDescription("公司代码")]
            public string CompanyID { get; set; }

            [ParamDescription("任务单号")]
            public string TaskBillNo { get; set; }

            [ParamDescription("配货方式")]
            public string TaskType { get; set; }

            [ParamDescription("操作员ID")]
            public string Operator { get; set; }

            [ParamDescription("操作员")]
            public string OperatorName { get; set; }

            [ParamDescription("开始时间")]
            public DateTime OperateDate { get; set; }

            [ParamDescription("完成时间")]
            public DateTime Finishdate { get; set; }

            [ParamDescription("生成ERP单据时间")]
            public DateTime PushBillDate { get; set; }

            [ParamDescription("任务状态")]
            public int TaskFlag { get; set; }

            //[ParamDescription("抽数时间")]
            //public DateTime LoadTime { get; set; }

            //[ParamDescription("修改时间")]
            //public DateTime etl_date { get; set; }

            //[ParamDescription("任务状态名称")]
            //public string TaskFlagName { get; set; }

            //[ParamDescription("配货方式")]
            //public string TaskTypeName { get;set;}

            [ParamDescription("配货仓库ID")]
            public string StockID { get; set; }

            [ParamDescription("配货仓库")]
            public string StockName { get; set; }
        }

        #endregion

 



        #region QueryModel

        public class QueryModel
        {
            [ParamDescription("状态")]
            public int TaskFlag { get; set; }

            [ParamDescription("配货方式")]
            public int TaskType { get; set; } = 0;

            [ParamDescription("配货时间开始")]
            public DateTime DateBegin { get; set; } = DateTime.Now;

            [ParamDescription("配货时间结束")]
            public DateTime DateEnd { get; set; } = DateTime.Now.AddDays(-7);

            [ParamDescription("页码")]
            public int Page { get; set; } = 1;

            [ParamDescription("页数")]
            public int Size { get; set; } = 100;
        }

        #endregion
    }
}
